-
Notifications
You must be signed in to change notification settings - Fork 55
Fix Recent Trips Actions #1369
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix Recent Trips Actions #1369
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks really good, just an idea to make the user experience a little smoother. Thank you for the changes!
lib/components/form/user-settings.js
Outdated
if (queryWithoutModes.departArrive === 'NOW') { | ||
queryWithoutModes.departArrive = 'DEPART' | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just an idea, but instead of populating the d/t selector to reflect the time the trip was originally planned, could we set the d/t selector by default to "today/leave now"? Or even avoid changing the d/t selector? I think in most cases the user is going to be trying to re-plan the trip for a time in the future versus look at results for a time that's in the past
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree. User is most likely trying to plan the same trip again but now. Should we have it set to "leave now" instead?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That might be out of the scope of this PR though?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
826d860 leaves the settings of the date time selector as they were prior to selecting the recent search entry, let me know what you think @amy-corson-ibigroup and @miles-grant-ibigroup
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code looks good, but agree with Amy that we should maybe review this behavior
lib/components/form/user-settings.js
Outdated
if (queryWithoutModes.departArrive === 'NOW') { | ||
queryWithoutModes.departArrive = 'DEPART' | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree. User is most likely trying to plan the same trip again but now. Should we have it set to "leave now" instead?
lib/components/form/user-settings.js
Outdated
if (queryWithoutModes.departArrive === 'NOW') { | ||
queryWithoutModes.departArrive = 'DEPART' | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That might be out of the scope of this PR though?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we're good to go!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great, thank you for the changes!
Description
This PR addresses incorrect behavior when clicking a recent search:
PR Checklist: